package com.chinasoft.cr.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chinasoft.cr.mapper.UserMapper;
import com.chinasoft.cr.pojo.Reservations;
import com.chinasoft.cr.mapper.ReservationsMapper;
import com.chinasoft.cr.pojo.vo.ReservationsParam;
import com.chinasoft.cr.service.ReservationsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 
 * @since 2025-01-21
 */
@Service
public class ReservationsServiceImpl extends ServiceImpl<ReservationsMapper, Reservations> implements ReservationsService {

    @Autowired
    ReservationsMapper reservationsMapper;

    @Override
    public Page<Reservations> getReservaTimesByDate(String date) {
        ReservationsParam p = new ReservationsParam();
        Page<Reservations> page = new Page<>(1, 999);
        System.out.println("---date");
        p.setDate(date);
        return reservationsMapper.selectPageVo(page, p);
    }
}
